import request from '@/utils/request'

// 查询进货明细列表
export function listPurchaseDetails(query) {
  return request({
    url: '/mes/po/report/listBuyDetail',
    method: 'get',
    params: query
  })
}

// 查询其他出入库明细列表
export function listotherPurchaseDetails(query) {
  return request({
    url: '/mes/po/report/listCheckInDetail',
    method: 'get',
    params: query
  })
}

// 查询现有库存明细列表
export function listExistingInventory(query) {
  return request({
    url: '/mes/po/report/warehouseDetail',
    method: 'get',
    params: query
  })
}

// 查询存货异动明细列表
export function listInventoryMovementDetails(query) {
  return request({
    url: '/mes/po/report/warehouseExceptDetail?pageNum=' + query.pageNum + '&pageSize=' + query.pageSize,
    method: 'post',
    data: query
  })
}
